<script setup lang='ts'>
import Result from '@/components/Result/index.vue';
import ModalTable from './components/ModalTable/index.vue';


</script>

<template>
    <Auth needShow :permission="['system:role:list', 'ROLE_ADMIN']" #="{ hasAuth }">
        <div v-if="hasAuth">
            <ModalTable/>
        </div>

        <div v-else>
            <Result status="-1" :showButton="false" content="您的权限不足" description="您可以联系管理员，设置权限后进行访问"></Result>
        </div>
    </Auth>
</template>

<style lang='scss'></style>